// 登录
export interface loginType {
    _gp: string,
    _mt: string,
    password: string,
    username: string
}

// 获取个人信息
export interface infoType {
    _gp: string,
    _mt: string
}


export class ClassPagination {
    /**
     * 当前页码
     */
    page: number = 1;

    /**
     * 每页数量
     */
    limit: number = 20;

    /**
     * 记录总数
     */
    total: number = 1;
}

export class ClassCoupon {
    /**
     * 主键编号
     */
    id: number = 0;
    /**
     * 优惠券名称
     */
    title: string = '';
    /**
     * 优惠券类型
     */
    type: number | undefined = undefined;
    /**
     * 描述信息
     */
    description: string = '';
    /**
     * 优惠券数量
     */
    total: number = 0;
    /**
     * 每个最多领取的数量
     */
    limit: number = 0;
    /**
     * 优惠金额
     */
    discount: number = 0;
    /**
     * 最低消费
     */
    min: number = 0;
    /**
     * 优惠券状态
     */
    status: number | undefined = undefined;
    /**
     * 相对天数
     */
    days: number | undefined = undefined;
    /**
     * 指定开始时间
     */
    gmtStart: number | undefined = undefined;
    /**
     * 指定结束时间
     */
    gmtEnd: number | undefined = undefined;
    /**
     * 类目编号
     */
    categoryId: number | undefined = undefined;
    /**
     * 类目标题
     */
    categoryTitle: string = '';
    /**
     * 剩余数量
     */
    surplus: number = 0;
}


export class ClassAdvert {
    id: number = 0;
    /**
     * 广告图片
     */
    imgUrl: string = "";
    /**
     * 广告状态
     */
    status: number = 1;
    /**
     * 广告标题
     */
    title: string = "";
    /**
     * 创建时间
     */
    gmtCreate: number | null = null;
    /**
     * 更新时间
     */
    gmtUpdate: number | null = null;
    /**
     * 颜色
     */
    color: string | null = null;
    /**
     * 6种广告类型
     */
    type: number = 1;
    /**
     * 4种关联类型
     */
    unionType: string | undefined = undefined;
    /**
     * 关联值
     */
    unionValue: string | undefined = undefined;
    /**
     * 判断修改还是添加
     */
    adId: number = 0;
}


export class ClassCategoryTree {
    /**
     * 子
     */
    // childredList: any[] = [];
    /**
     * 类型名
     */
    fullName: string = '';
    /**
     * 创建时间
     */
    gmtCreate: number | null = null;
    /**
     * 更新时间
     */
    gmtUpdate: number | null = null;
    /**
     * id
     */
    id: number = 1;
    /**
     * 等级
     */
    level: number = 1;
    /**
     * 父id
     */
    parentId: number = 1;
    /**
     * 标题
     */
    title: string = '';
    /**
     * 叶子id
     */
    treeNodeId: number = 1;
}


export class ClassGroupShop {
    id?: number | undefined = undefined;
    spuId: number | undefined = undefined;
    minPrice: number | undefined = undefined;
    maxPrice: number | undefined = undefined;
    gmtStart: number | undefined = undefined;
    gmtEnd: number | undefined = undefined;
    minNum: number | undefined = undefined;
    buyerNum: number | undefined = undefined;
    automaticRefund: number | undefined = undefined;
    groupShopSkuDTOList: TypeGroupShopSku[] = [];
    originalprice: number | undefined = undefined;
    price: number | undefined = undefined;
    vipPrice: number | undefined = undefined;
    title: string | undefined = undefined;
    sales: number | undefined = undefined;
    img: string | undefined = undefined;
    detail: string | undefined = undefined;
    description: string | undefined = undefined;
    categoryid: number | undefined = undefined;
    freightTemplateId: number | undefined = undefined;
    unit: string | undefined = undefined;
    status: number | undefined = undefined;
}


/**
 * 商品规格属性
 */
export class classSKU {
    "id"?: number | undefined = undefined;
    "barCode": string | undefined = undefined;
    "gmtCreate"?: number | undefined = undefined;
    "gmtUpdate"?: number | undefined = undefined;
    "img": string | undefined = undefined;
    "originalprice": number | undefined = undefined;
    "price": number | undefined = undefined;
    "specification":string | undefined = undefined;
    "spuId": number | undefined = undefined;
    "stock": number | undefined = undefined;
    "title": string | undefined = undefined;
    "vipPrice": number | undefined = undefined;
    "weight": number | undefined = undefined;
}

/**
 * 商品列表
 */
export class classproduct {
    "id": number | undefined = undefined;
    "activityId": number | undefined = undefined;
    "activityType": number | undefined = undefined;
    "categoryId": number | undefined = undefined;
    "description": string | undefined = undefined;
    "freightTemplateId": number | undefined = undefined;
    "gmtActivityEnd": number | undefined = undefined;
    "gmtActivityStart": number | undefined = undefined;
    "gmtCreate": number | undefined = undefined;
    "gmtUpdate": number | undefined = undefined;
    "img": string | undefined = undefined;
    "originalPrice": number = 0;
    "price": number = 0;
    "sales": number | undefined = undefined;
    "status": number | undefined = undefined;
    "title": string | undefined = undefined;
    "unit": string | undefined = undefined;
    "vipPrice": number = 0;
    "skuList": [classSKU]
}